import { lazy ,Suspense} from "react"
import Loading from "../component/Loading/Loading"
var DataOrganization = lazy(() => import('../view/Index/Datas/DataOrganization/DataOrganization'))
var Addorg = lazy(() => import('../view/Index/Datas/Addorg/Addorg'))
var Handleorg = lazy(() => import('../view/Index/Datas/Handleorg/Handleorg'))
var DataTeam = lazy(() => import('../view/Index/Datas/DataTeam/DataTeam'))
var AddTeam = lazy(() => import('../view/Index/Datas/AddTeam/AddTeam'))
var TeamDetail = lazy(() => import('../view/Index/Datas/TeamDetail/TeamDetail'))
var DataDoctor = lazy(() => import('../view/Index/Datas/DataDoctor/DataDoctor'))
var DoctorAdd = lazy(() => import('../view/Index/Datas/DoctorAdd/DoctorAdd'))
var DoctorDetail = lazy(() => import('../view/Index/Datas/DoctorDetail/DoctorDetail'))
var DataServicePack = lazy(() => import('../view/Index/Datas/DataServicePack/DataServicePack'))
var DataServiceProject = lazy(() => import('../view/Index/Datas/DataServiceProject/DataServiceProject'))
var ServeProjectAdd = lazy(() => import('../view/Index/Datas/ServeProjectAdd/ServeProjectAdd'))
var ServeProjectEdit = lazy(() => import('../view/Index/Datas/ServeProjectEdit/ServeProjectEdit'))
var DataPerformance = lazy(() => import('../view/Index/Datas/DataPerformance/DataPerformance'))


let Datas: any = [
    // 机构管理
    { path: '/index/datas-organization', element: <Suspense fallback={<Loading/>}><DataOrganization /></Suspense> }, //√
    // 添加机构
    { path: '/index/datas-organization-addorg', element: <Suspense fallback={<Loading/>}><Addorg /></Suspense> }, //√
    // 编辑机构
    { path: '/index/datas-organization-handleorg', element: <Suspense fallback={<Loading/>}><Handleorg /></Suspense> },//√

    // 团队管理
    { path: '/index/datas-team', element: <Suspense fallback={<Loading/>}><DataTeam /> </Suspense>},
    // 添加团队
    { path: '/index/datas-team-addteam', element: <Suspense fallback={<Loading/>}><AddTeam /></Suspense> },
    // 团队详情
    { path: '/index/datas-team-teamdetail', element: <Suspense fallback={<Loading/>}><TeamDetail /></Suspense> },
    // 医生管理
    { path: '/index/datas-doctor', element: <Suspense fallback={<Loading/>}><DataDoctor /></Suspense> },
    // 新增医生信息
    { path: '/index/datas-doctor-adddoctor', element: <Suspense fallback={<Loading/>}><DoctorAdd /></Suspense> },
    // 获取医生详情
    { path: '/index/datas-doctor-detail', element:<Suspense fallback={<Loading/>}> <DoctorDetail /> </Suspense>},
    // 服务包管理
    { path: '/index/datas-service-pack', element: <Suspense fallback={<Loading/>}><DataServicePack /></Suspense> },
    // 服务包项目管理
    { path: '/index/datas-service-project', element: <Suspense fallback={<Loading/>}><DataServiceProject /></Suspense> },
    { path: '/index/serveproject-add', element: <Suspense fallback={<Loading/>}><ServeProjectAdd /></Suspense> },
    { path: '/index/serveproject-edit', element:<Suspense fallback={<Loading/>}> <ServeProjectEdit /></Suspense> },
    // 业绩目标管理
    { path: '/index/datas-performance', element: <Suspense fallback={<Loading/>}><DataPerformance /></Suspense> },
]
export default Datas